<template>
  <div class="center-wrap">
    <div class="issues-info">
      <!-- <div class="issues-title">
        <div>{{ info.name }}</div>
      </div>-->
      <!-- <div class="issues-desc">
        <div>
          <span>研究中心：</span>
          <span class="issues-info__content">{{ info.centre }}</span>
        </div>
        <div>
          <span>受试者：</span>
          <span class="issues-info__content">{{ info.subject?.sic }}</span>
        </div>
        <div>
          <span>访视时间：</span>
          <span class="issues-info__content">{{ info.visitTime }}</span>
        </div>
      </div>-->
      <!-- <div class="issues-content">
        <div>{{ info.content }} 内容中心</div>
      </div>-->

      <div class="reply-wrap">
        <div class="reply-label">回复</div>
        <el-input v-model="reply" type="textarea" :autosize="{ minRows: 4 }" />
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { defineProps, ref } from 'vue'
// import { useState } from './issuesState'

// const { canEdit } = useState()

defineProps({
  info: {
    type: Object,
    default: () => {},
  },
})

const reply = ref('')
</script>

<style lang="scss" scoped>
.issues {
  &-info {
    &__content {
      font-size: 16px;
    }
  }

  &-title {
    display: flex;
    margin-bottom: 10px;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
  }

  &-desc {
    display: flex;
    margin-right: -5px;
    margin-left: -5px;
    align-items: center;
    flex-wrap: wrap;

    & > div {
      min-width: 20%;
      padding: 0 5px;
    }
  }

  &-content {
    padding: 15px 0;
  }
}

.reply {
  &-label {
    line-height: 32px;
  }
}
</style>
